<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加大类</title>

</head>
<body>
<s:form action="com_updatePower" method="post" theme="simple" id="save">
  <s:hidden name="comId"  value='%{comId}' id="comId"></s:hidden>
  <s:hidden id="power" value="%{comPower}"></s:hidden>
<table>
<tr>
<td>
<input type="checkbox" value="1" name="comPower" id="comPower"/>上传菜单权限
</td>
<td id="nameError" ></td>
</tr>
</table>

</s:form>
<script type="text/javascript">
var power=$("#power").val();
if(power=="1"){
   $("#comPower").attr("checked",true);
}
</script>
</body>
</html>